package com.smartmedical.patient.share.service.Impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.smartmedical.patient.share.domain.Information;
import com.smartmedical.patient.share.domain.InformationPlate;
import com.smartmedical.patient.share.domain.PopularSearch;
import com.smartmedical.patient.share.mapper.InformationMapper;
import com.smartmedical.patient.share.service.InformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
@DS("slave")
public class InformationServiceImpl implements InformationService {
    @Autowired
    private InformationMapper informationMapper;

    @Override
    public InformationPlate findInformationPlateList() {
        return informationMapper.findInformationPlateList();
    }

    @Override
    public List<Information> findInformationList(int plateId) {
        return informationMapper.findInformationList(plateId);
    }

    @Override
    public List<PopularSearch> popularSearch() {
        return informationMapper.popularSearch();
    }

    @Override
    public Information findInformation(int infoId) {

        return informationMapper.findInformation(infoId);
    }
}
